package com.atguigu.gulimall.product.feign;


import com.atguigu.common.utils.R;
import com.atguigu.common.to.es.SkuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


//@Component
@FeignClient("gulimall-ware")
public interface WareFeignService {


//    @PostMapping("/ware/waresku/hasStock")
//    List<SkuHasStockVo> getSkushasStock(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/waresku/hasStock")
    R getSkushasStock(@RequestBody List<Long> skuIds);

}




